package com.health.system.api;

import com.health.common.core.constant.ServiceNameConstants;
import com.health.common.core.domain.R;
import com.health.system.api.domain.ShmDoctor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "remoteBodyService", value = ServiceNameConstants.BODY_SERVICE)
public interface RemoteBodyService {

    @GetMapping("/body/selectDoctor/{diseaseName}")
    public R<List<ShmDoctor>> selectDoctor(@PathVariable String diseaseName);

}
